﻿<!--
//===============================================================================
// Mammoth Data Analysis Platform
//===============================================================================
// Copyright (C) 2008-2009 Arkadiusz Świerczek and Piotr Włodek.
// All rights reserved.
//===============================================================================
// Defines user interface for the ProgressView.
//===============================================================================
-->

<Controls:ChromeWindow x:Class="WpfRcp.Views.Windows.ProgressWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:WpfRcp.Controls;assembly=WpfRcp.Controls"
    xmlns:Helpers="clr-namespace:WpfRcp.Helpers" xmlns:Controls1="clr-namespace:WpfRcp.Views.Controls" ShowInTaskbar="False" SizeToContent="WidthAndHeight" ChromeWindowStyle="None" SnapsToDevicePixels="True"
    Background="{DynamicResource WindowBackground}" Style="{StaticResource SingleChromeWindowStyleKey}"
    Title="{Binding Source={x:Static Helpers:ResHelper.Instance}, Path=Resource[PleaseWait]}"
    WindowStartupLocation="CenterOwner">
    <StackPanel>
        <Controls1:ProgressControl />

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="{Binding Source={x:Static Helpers:ResHelper.Instance}, Path=Resource[Cancel]}"
                Command="{Binding CancelCommand}"  Width="90" Margin="0,0,5,0" />
            <Button Content="{Binding Source={x:Static Helpers:ResHelper.Instance}, Path=Resource[Background]}"
                Command="{Binding SendToBackgroundCommand}" Width="90" Margin="0,0,5,0" />
        </StackPanel>
    </StackPanel>
</Controls:ChromeWindow>
